@use './minireset.min.css';
@use './elementui.scss' as *;

body {
    min-height: 100vh;
    box-sizing: border-box;
}
#app {
    width: 100%;
    height: 100%;
}

// 全屏遮罩
.fullscreen-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .1);
}
// 鼠标指针变成禁止点击
.not-allowed {
    cursor: not-allowed !important;
}

// 图片自适应
img {
    width: 100%;
}

// 单行文本超出显示省略号
.show-over-1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
// 多行文本超出显示省略号
@for $i from 2 through 6 {
    .show-over-#{$i} {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        line-height: 1.5;
        text-overflow: ellipsis;

        -webkit-line-clamp: #{$i};
                line-clamp: #{$i};
    }
}

// electron中的能否拖拽
.elec-drag {
    -webkit-app-region: drag; // 可拖动
}
.elec-no-drag {
    -webkit-app-region: no-drag; // 不可拖动
}

.el-button {
    border-radius: 8px;
}

.custom-drag {
    position: fixed;
    top: 0;
    left: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

         -o-user-select: none;
}
